package dataModule

import "fmt"

type Student struct {
	Name string
	Age  int
}

// 重写string
func (stu *Student) String() string {
	return fmt.Sprintf("%s is %d years old\n", stu.Name, stu.Age)
}

func NewStudent(name string, age int) *Student {
	return &Student{name, age}
}
